package com.it.service;

import com.it.dao.AboutDAO;
import com.it.entity.About;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

@Service
public class AboutServiceImpl implements AboutService{
    @Autowired
    private AboutDAO aboutDAO;
    @Override
    public void update(About about) {
        aboutDAO.update(about);
    }

    @Override
    public About findById(int id) {
        return aboutDAO.findById(id);
    }
}
